package org.jxy.study.rpc.service.impl;

import org.jxy.study.rpc.annotation.RpcService;
import org.jxy.study.rpc.entity.UserInfo;
import org.jxy.study.rpc.service.HelloWorldService;
import org.springframework.stereotype.Service;

/**
 * @author : porteryao
 * @description : 描述
 * @date : 2021/3/11 14:19
 */
@Service
@RpcService
public class HelloWorldServiceImpl implements HelloWorldService {

    @Override
    public String sayHello(String name) {
        return "hello " + name + " , i am service 1";
    }

    @Override
    public String registerUserInfo(UserInfo info) {
        return info.getName()+" register ok ";
    }
}
